Sistemas y Señales Biomédicos

Ingeniería Biomédica

Ph.D. Pablo Eduardo Caicedo Rodríguez

2025-04-08

Sistemas y Señales Biomedicos - SYSB

Digital Filters

Why the Z-Transform?

  • The Fourier Transform assumes signals are stable and well-behaved
  • But some biosignals or systems may not be absolutely summable
  • The Z-Transform generalizes the Fourier Transform
  • Useful for analyzing discrete-time systems, especially when stability and causality matter

Definition

Let \(x[n]\) be a discrete-time signal.

The Z-Transform is defined as:

\[X(z) = \sum_{n=-\infty}^{\infty} x[n] z^{-n}\]

Where: - \(z \in \mathbb{C}\) is a complex variable - \(z = re^{j\omega}\)

Region of Convergence (ROC)

  • The Z-Transform converges only for certain values of \(z\)
  • The set of \(z\) for which the series converges is the ROC
  • ROC is critical for system stability and causality

Causal Signals
ROC is outside outermost pole

Anti-Causal Signals
ROC is inside innermost pole

Z-Plane Representation

  • Poles: values of \(z\) where \(X(z) \to \infty\)
  • Zeros: values where \(X(z) = 0\)
  • Visualization of poles and zeros helps in understanding system behavior

\[H(z) = 1.00 \cdot \frac{(z - 0.50)}{(z - 0.90)}\]

(-1.5, 1.5)
(-1.5, 1.5)

Relationship with Fourier Transform

If the ROC includes the unit circle, \(|z| = 1\), then:

\[X(e^{j\omega}) = \sum_{n=-\infty}^{\infty} x[n] e^{-j\omega n}\]

So the Fourier Transform is a special case of the Z-Transform.

Properties of the Z-Transform

  • Linearity: \(a x[n] + b y[n] \to aX(z) + bY(z)\)
  • Time shifting: \(x[n - k] \to z^{-k} X(z)\)
  • Scaling in the z-domain: \(a^n x[n] \to X(z/a)\)
  • Convolution: \(x[n] * h[n] \to X(z)H(z)\)

Example

Let \(x[n] = a^n u[n]\), where \(|a| < 1\)

\[X(z) = \sum_{n=0}^{\infty} a^n z^{-n} = \frac{1}{1 - az^{-1}}, \quad \text{ROC: } |z| > |a|\]

Difference Equations in DSP

A difference equation relates input and output values at different time steps.

\[y[n] - a_1 y[n-1] - a_2 y[n-2] = b_0 x[n] + b_1 x[n-1]\]

Common in: - Digital filters (FIR, IIR) - Signal models in ECG, EEG analysis - Implementation in real-time biosignal systems

Z-Transform of Time-Shifted Terms

The Z-Transform turns time shifts into powers of \(z^{-1}\):

Time Domain Z-Domain
\(x[n]\) \(X(z)\)
\(x[n-k]\) \(z^{-k} X(z)\)
\(y[n-k]\) \(z^{-k} Y(z)\)

Step 1: Apply Z-Transform

Given:

\[y[n] - a_1 y[n-1] - a_2 y[n-2] = b_0 x[n] + b_1 x[n-1]\]

Apply \(\mathcal{Z} \{ \cdot \}\):

\[Y(z) - a_1 z^{-1} Y(z) - a_2 z^{-2} Y(z) = b_0 X(z) + b_1 z^{-1} X(z)\]

Step 2: Factor and Solve for \(H(z)\)

Group:

\[Y(z)(1 - a_1 z^{-1} - a_2 z^{-2}) = X(z)(b_0 + b_1 z^{-1})\]

Divide both sides:

\[H(z) = \frac{Y(z)}{X(z)} = \frac{b_0 + b_1 z^{-1}}{1 - a_1 z^{-1} - a_2 z^{-2}}\]

Example

Given:

\[y[n] - 0.9 y[n-1] = x[n] - 0.5 x[n-1]\]

Z-Transform:

\[Y(z)(1 - 0.9 z^{-1}) = X(z)(1 - 0.5 z^{-1})\]

Transfer Function:

\[H(z) = \frac{1 - 0.5 z^{-1}}{1 - 0.9 z^{-1}}\]

Poles and Zeros

Let’s analyze \(H(z)\):

  • Zeros: Roots of the numerator \(\Rightarrow z = 0.5\)
  • Poles: Roots of the denominator \(\Rightarrow z = 0.9\)

Pole-Zero Plot
Visualizes system behavior
Check for: - Stability (poles inside unit circle) - Frequency shaping

Practice

Convert this equation:

\[y[n] = 0.6 y[n-1] + x[n] + x[n-1]\]

Find: - \(H(z)\) - Poles and zeros - Plot them in the Z-plane

Application in Biosignal Processing

  • Analysis of digital filters for ECG, EEG, etc.
  • Design of stable and causal filtering systems
  • Useful in difference equation modeling of biosignals

Summary

  • Z-Transform is a powerful tool for analyzing discrete systems
  • Provides insight into stability, causality, and system behavior
  • A generalization of the Fourier Transform
  • Crucial in digital signal processing of biosignals
  • Z-Transform converts difference equations into algebraic expressions
  • Transfer function \(H(z)\) tells us how the system responds to inputs
  • Key for digital filter design in biosignal processing

Next Steps

  • Practice Z-Transform computations
  • Pole-zero plotting exercises
  • Application to real biosignal filtering problems